package com.success.feign;


import com.success.domain.User;
import com.success.hystrix.FeignSerHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "user-server",fallback = FeignSerHystrix.class)
public interface IFeignSer {

    @GetMapping("/user/{id}")
    User getId(@PathVariable("id") Long id );

}
